package com.fxu;

import com.fxu.framework.core.holder.SpringHolder;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/***
 * 启动器
 * @author 方旭
 * @version 2021-09-06
 ***/
@ServletComponentScan(basePackages = { "com.fxu.framework.biz.filter" })
@ComponentScan(basePackages = {"com.fxu.framework.core", "com.fxu.framework.biz", "com.fxu.framework.mq.redis", "com.fxu"}) //
@MapperScan(basePackages = { "com.fxu.tpl.mapper", "com.fxu.role.mapper" })
@Import(SpringHolder.class)
@SpringBootApplication
@EnableScheduling // 开启任务
@EnableAsync // 开启异步调用
@EnableTransactionManagement
public class GenApplication {

	public static void main(String[] args) {
		SpringApplication.run(GenApplication.class, args);
		SpringHolder.loggerBeans(GenApplication.class);
	}

}
